package com.dtx.practice.two;

public class Square {
    long width;
    public Square(long l){
        width = l;
    }

    public static void main(String[] args) {
        Square a,b,c;
        a=new Square(42L);
        b=new Square(42L);
        c=b;
        long s = 42L;
        System.out.println(a==b);  //false
        //System.out.println(s==a); 直接报错
        System.out.println(b==c);  // true
        System.out.println(a.equals(s)); //false

    }
}
